package org.example;

import org.example.common.service.UserService;
import org.example.provider.UserServiceImpl;
import org.example.registry.LocalRegistry;
import org.example.server.HttpServer;
import org.example.server.VertxHttpServer;

/**
 * Hello world!
 *
 */
public class Provider
{
    public static void main( String[] args )
    {
        System.out.println( "服务提供者实现方法" );

        //  注册服务
        LocalRegistry.register(UserService.class.getName(), UserServiceImpl.class);

        // 启动web服务器
        // 验证接收请求
        HttpServer httpServer = new VertxHttpServer();
        httpServer.doStart(8080);
    }
}
